<template>
    <div>
      <div class="more-contant" ref="more">
        <div @click="goback" class="back">点击返回</div>
        <ul >
          <li v-for="item in this.getShowData.steps">
            <div class="steps-text">{{item.content}}</div>
            <div class="steps-img">
              <img :src="item.imgUrl" v-show="item.imgUrl" >
            </div>
          </li>
        </ul>
      </div>
    </div>
</template>

<script>
  import IScroll from "iscroll/build/iscroll-probe/"
  import {mapGetters} from "vuex"
    export default {
        data() {
            return {}
        },
        created(){
          this.$nextTick(()=>{
            if(this.$refs.more){
              this.moreScroll= new IScroll(this.$refs.more,{
                click:true
              })
            }
          }
        )
        },
        computed:{
          ...mapGetters(["getShowData"])
        },
        methods:{
          goback(){
            this.$router.go(-1)
          }
        }
    }
</script>

<style lang="less" scoped>
  .more-contant{
    .back{
      position: fixed;
      bottom: 60px;
      width: 100%;
      height: 80px;
      color: black;
      text-align: center;
      font-size: 40px;
      line-height: 80px;
      background-color: grey;
      opacity: 0.7;
    }
    .steps-text{
      display: inline-block;
      font-size: 36px;
      padding: 40px;
    }
    .steps-img{
      padding: 30px;
      img{
        width: 100%;
      }
    }
  }
</style>
